<%@ page language="java" import="java.util.*"
	contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<h2 class="contentTitle">
	在线考试系统---正在考试：${tkname }
	<c:if test="${cj.score != null }">
		<span style="color: red">当前测试得分: ${cj.score}</span>
	</c:if>
</h2>
<script type="text/javascript">
	
</script>
<table class="list" width="50%" layoutH="60">
	<tr>
		<th colspan="4"><h2>以下为单项选择题(总分：${t1score } )</h2></th>
	</tr>
	<c:forEach varStatus="s" items="${zxkstm1List }" var="item">
		<tr>
			<td><input type="hidden" name="id" value="${item.id}" />
				<table class="table" width="100%">
					<tr>
						<td colspan="4">${s.index + 1}: ${item.tm}</td>
					</tr>
					<tr>
						<td><label> A <input type="radio"
								${item.lsda eq 'A' ? 'selected="selected"':''} name="lsda"
								value="A" /></label></td>
						<td>${item.d1}</td>
						<td><label> B <input type="radio"
								${item.lsda eq 'B' ? 'selected="selected"':''} name="lsda"
								value="B" /></label></td>
						<td>${item.d2}</td>
					</tr>
					<tr>
						<td><label> C <input type="radio"
								${item.lsda eq 'C' ? 'selected="selected"':''} name="lsda"
								value="C" /></label></td>
						<td>${item.d3}</td>
						<td><label> D <input type="radio"
								${item.lsda eq 'D' ? 'selected="selected"':''} name="lsda"
								value="D" /></label></td>
						<td>${item.d4}</td>
					</tr>
					<tr>
						<td colspan="4"><label>题目分数</label> ${item.fs} <c:if
								test="${item.zq ne item.lsda }">
								<span style="color: red">正确答案: ${item.zq} 你的答案:
									${item.lsda}</span>
							</c:if> <c:if test="${item.zq eq item.lsda }">
								<span style="color: green">正确答案 :${item.zq} 你的答案:
									${item.lsda}</span>
							</c:if></td>
					</tr>
				</table></td>
		</tr>
	</c:forEach>
	<tr>
		<th colspan="4"><h2>以下为多项选择题(总分：${t2score } )</h2></th>
	</tr>
	<c:forEach varStatus="s" items="${zxkstm2List }" var="item">
		<tr>
			<td><input type="hidden" name="id" value="${item.id}" /> <input
				type="hidden" name="lsda" id="zq3" value="${item.lsda}" />
				<table class="table" width="100%">
					<tr>
						<td colspan="4">${s.index + 1}: ${item.tm}</td>
					</tr>
					<tr>
						<td><label> A <input type="checkbox"
								${fn:contains(item.lsda,'A') ? 'selected="selected"':''}
								name="lsda2" class="dxbz" value="A" /></label></td>
						<td>${item.d1}</td>
						<td><label> B <input type="checkbox"
								${fn:contains(item.lsda,'B') ? 'selected="selected"':''}
								name="lsda2" class="dxbz" value="B" /></label></td>
						<td>${item.d2}</td>
					</tr>
					<tr>
						<td><label> C <input type="checkbox"
								${fn:contains(item.lsda, 'C') ? 'selected="selected"':''}
								name="lsda2" class="dxbz" value="C" /></label></td>
						<td>${item.d3}</td>
						<td><label> D <input type="checkbox"
								${fn:contains(item.lsda, 'D') ? 'selected="selected"':''}
								name="lsda2" class="dxbz" value="D" /></label></td>
						<td>${item.d4}</td>
					</tr>
					<tr>
						<td colspan="4"><label>题目分数</label> ${item.fs} <c:if
								test="${item.zq ne item.lsda }">
								<span style="color: red">正确答案: ${item.zq} 你的答案:
									${item.lsda}</span>
							</c:if> <c:if test="${item.zq eq item.lsda }">
								<span style="color: green">正确答案 :${item.zq} 你的答案:
									${item.lsda}</span>
							</c:if></td>
					</tr>
				</table></td>
		</tr>
	</c:forEach>

</table>

